<template>
  <UserFormLayout title="问题反馈">
    <template #middle>
      <UserQuestionForm ref="form" @saving="(v) => saving = v"/>
    </template>
    <template #bottomBtns>
      <a-button type="primary" @click="() => $refs.form.save()" :loading="saving">
        {{ '确定提交' }}
      </a-button>
      <a-button @click="clickBack">
        {{ $t('取消') }}
      </a-button>
    </template>
  </UserFormLayout>
</template>

<script>
  import UserFormLayout from "@views/user/UserFormLayout";
  import UserQuestionForm from "@views/user/UserQuestionForm";

  export default {
    name: 'UserQuestion',
    components: {
      UserFormLayout, UserQuestionForm
    },
    computed: {
    },
    data() {
      return {
        saving : false
      }
    },
    methods: {
      clickBack() {
        this.$router.push({path: '/'})
      },
    },
  }
</script>

<style lang="less" scoped>
</style>
